<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>

      let userInfo = {
        token1: {
          city: '杭州',
          money: '1000w',
          sex: '女',
          userName: 'admin',
        },
        token2: {
          city: '北京',
          money: '1100w',
          sex: '女',
          userName: 'zhangsan',
        },
        token3: {
          city: '北京',
          money: '800w',
          sex: '男',
          userName: 'lisi',
        },
        token4: {
          city: '天津',
          money: '600w',
          sex: '男',
          userName: 'yyqx',
        },
      }

      let loginList = [
        { userName: 'admin', password: 'admin321' },
        { userName: 'zhangsan', password: 'zs321' },
        { userName: 'lisi', password: 'ls321' },
        { userName: 'yyqx', password: 'yyqx321' },
      ]

      function login() {
        for (let i = 0; i < loginList.length; i++) {
          let user = prompt('请输入您的用户名')
          let pass = prompt('请输入您的密码')
        if(
          (user === 'admin' && pass === 'admin321') ||
          (user === 'zhangsan' && pass === 'zs321') ||
          (user === 'lisi' && pass === 'ls321') ||
          (user === 'yyqx' && pass === 'yyqx321')
        ){
          
        }
        }
      }

      login()
    </script>
  </body>
</html>
